package com.example.qm_line_example;

import android.app.Application;

import com.inmotion.android.sdk.moor7.IApp;
import com.inmotion.android.sdk.moor7.Moo7Helper;


public class InmotionApp extends Application implements IApp {

    private static InmotionApp sInstance;

    @Override
    public void onCreate() {
        super.onCreate();
        sInstance = this;

        Moo7Helper.getInstance().setAppDelegate(this);
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
        sInstance = null;
    }

    public static InmotionApp getInstance() {
        return sInstance;
    }

    @Override
    public Application getApp() {
        return this;
    }
}
